package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.entity.Dish;
import com.itheima.entity.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
/**
 *套餐持久层接口
 * @author msi
 * @date 2022/5/17
 * @version 1.0
 */
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {
    /**
     * 根据套餐id修改销量
     * @param setmeal 套餐对象
     */
    @Update("update reggie.setmeal set sale_num=#{saleNum} where id = #{id}")
    void updateBySetmealId(Setmeal setmeal);

}
